package com.erp.erpboot.mapper;

import com.erp.erpboot.pojo.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component(value = "PersonMapper")
public interface PersonMapper {
    public int add(Person person);

    public void delete(int id);

    public void deleteList(List<Integer> ids);

    public Person get(int id);

    public int update(Person person);

    public List<Person> list();

    public int count();

    public List<Person> listByPage(@Param("pageSize")int pageSize, @Param("pageIndex")int pageIndex);

    public List<Person> getByParentID(int iParentID);
}
